<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>test02</title>
</head>
<body>

<p th:text="你好"></p>
<p th:text="'你好'+'中国'"></p>
<p th:text="'你好'+${name}"></p>
<p th:text="你好+${name}"></p>
<p th:text="|'你好' ${name}|"></p>
<p th:text="你好+|${name},${name}|"></p>
</body>
</html>